package hu.mapro.gwtui.client.model;

import hu.mapro.model.Getter;


public abstract class AbstractField<T, D> implements Field<T, D>  {

	Getter<T, D> getter;
	String label;
	String propertyName;

	public AbstractField(Getter<T, D> getter, String propertyName, String label) {
		super();
		this.getter = getter;
		this.propertyName = propertyName;
		this.label = label;
	}

	@Override
	public String getPropertyName() {
		return propertyName;
	}

	@Override
	public String getLabel() {
		return label;
	}

}
